import request from '@/utils/request'

// 查询教练端协议设置列表
export function listAgreementInfo(query) {
  return request({
    url: '/course/agreementInfo/list',
    method: 'get',
    params: query
  })
}

// 查询教练端协议设置详细
export function findOne() {
  return request({
    url: '/course/agreementInfo/findOne' ,
    method: 'get'
  })
}

// 查询教练端协议设置详细
export function getAgreementInfo(id) {
  return request({
    url: '/course/agreementInfo/view/' + id,
    method: 'get'
  })
}

// 新增教练端协议设置
export function addAgreementInfo(data) {
  return request({
    url: '/course/agreementInfo/add',
    method: 'post',
    data: data
  })
}

// 修改教练端协议设置
export function updateAgreementInfo(data) {
  return request({
    url: '/course/agreementInfo/update',
    method: 'put',
    data: data
  })
}

// 删除教练端协议设置
export function delAgreementInfo(id) {
  return request({
    url: '/course/agreementInfo/delete/' + id,
    method: 'delete'
  })
}
